import { axios } from '@/utils/request'

/**
 * 商户管理
 */

export function selectPage (parameter) {
  return axios({
    url: '/shop/account/selectPage',
    method: 'post',
    params: parameter
  })
}

export function saveOrUpdate (parameter) {
  return axios({
    url: '/shop/account/saveOrUpdate',
    method: 'post',
    data: parameter
  })
}

export function del (parameter) {
  return axios({
    url: '/shop/account/' + parameter + '/delete',
    method: 'get'
  })
}

export function selectAllAccount (parameter) {
  return axios({
    url: '/shop/account/selectAllAccount',
    method: 'post',
    params: parameter
  })
}